<template>
    <el-form-item :prop="prop" :label="label" :rules="rules">
        <slot/>
    </el-form-item>
</template>

<script lang="ts">
import { Vue, Component, Inject, Prop } from 'vue-property-decorator';

@Component({
    name: 'KFormItem',
})
export default class KFormItem extends Vue {
    @Inject() readonly KForm!: any;
    @Prop({ type: String }) readonly prop!: string;
    @Prop({ type: String }) readonly label!: string;
    @Prop({ type: Array }) readonly rules!: any[];

}
</script>
